Back to overview

Beckhoff: Denial-of-Service vulnerability in the MDP package included in TwinCAT/BSD operating system

VDE-2024-050
Last update
05/22/2025 15:03
Published at
08/27/2024 10:00
Vendor(s)
Beckhoff Automation GmbH & Co. KG
External ID
VDE-2024-050
CSAF Document

Summary

By default, TwinCAT/BSD-based products have a device-specific web interface for web-based management (WBM) enabled, developed by Beckhoff and known as Beckhoff Device Manager UI. It can be accessed remotely or locally. When accessed locally, a user can post specifically crafted input which then causes a buffer overflow on stack which in turn lets the process 'MDPService' crash such that the web interface becomes unavailable until next restart or even execute code in the context of user 'root'.

Impact

A local attacker could cause a denial-of-service or execute code in the context of user 'root' via a crafted HTTP request.

Affected Product(s)

Model no. Product name Affected versions
MDP package <1.2.7.0 MDP package <1.2.7.0
TwinCAT/BSD <14.1.2.0_153968 TwinCAT/BSD <14.1.2.0_153968

Vulnerabilities

Expand / Collapse all

Published
09/22/2025 14:57
Weakness
Stack-based Buffer Overflow (CWE-121)
References

Mitigation

Avoid the existence of user accounts with login permission on the target other than administrator access. By default, TwinCAT/BSD has preconfigured user accounts with lower privileges, but none of them have a password, which results in them being denied login access. Avoid running third-party applications on the target that have not been properly audited, regardless of the user they are running as.

Remediation

Please update to a recent version of the affected product. In general, Beckhoff recommends updating the entire TwinCAT/BSD operating system to a current version rather than individual packages. Information on updating existing TwinCAT/BSD installations is available in here:. There you will also find information on how to determine the operating system version via the command line. This is also visible via the Beckhoff Device Manager UI. Please note that when updating from the TwinCAT/BSD major version 12, two consecutive upgrades are required.

Revision History

Version Date Summary
1 08/13/2024 09:00 initial revision
2 11/06/2024 12:27 Fix: correct certvde domain, added self-reference
3 01/16/2025 10:45 Fix: list of branches, typo in reference url
4 04/11/2025 09:00 Fix: version range
5 05/22/2025 15:03 Fix: quotation mark